package cn.hznc.exception;

public enum ToolManageEx {
    /**
     * 该刀具编码重复,添加失败
     */
    TOOL_IDNR_EXIST("10000","该刀具编码重复,添加失败"),
    TOOL_TYPE_NO_EXIST("10001","工具类型不存在"),

    TOOL_IDNR_PARTNO_EXIST("10002","该刀具编码以及物料编码重复,添加失败"),

    ASSEMBLY_TOOL_NO_EXIST("20000","总成刀具关联项不存在"),

    ASSEMBLY_TOOL_ID_NULL("20001","总成刀具系统编码为空"),

    PROGRAM_ID_NULL("30000","主程序id不存在"),

    PROCESS_NO_EXIST("40000","工序工艺不存在"),


    PROCESS_FIGURE_NUMBER_REPEAT("40001","工序关联的产品图号重复"),

    CRAFT_PROGRAM_CONNECT_FAIL("40003","工序关联程序异常"),

    PROCESS_NUM_REPEAT("40002" , "工序编码重复"),

    ORDER_TASK_ID_REPEAT("40004","工单的生成订单号重复"),

    PROCESS_FIGURE_NUMBER_IS_NULL("40002","工序关联的产品图号不能为空"),

    PROCESS_CRAFT_CONNECT_ERROR("40003","工艺没有关联工序，修改失败"),

    PROCESS_CRAFT_NO_EXIST("40005","工艺不存在"),
    SEQ_ERROR("40007","序列超出实际最大范围"),

    PROCESS_BOM_CONNECT_ERROR("40006","物料没有关联工序，修改失败"),


    PRODUCTION_FIGURE_NUM_IS_NULL("50000","产品图号为空，创建修改失败"),
    PRODUCTION_FIGURE_NUM_REPEAT("50001","产品图号重复，创建修改失败"),
    PRODUCTION_ID_IS_NULL("50002","产品系统编码为空，操作失败"),

    ORDER_NO_EXIST("60000","工单不存在"),
    PROCESS_CONNECTION_NO_EXIST("60001","工单所关联的图号工序不存在，请先创建工序"),

    EXCEED_PLAN_NUMBER("70001","任务分配数量超出工序计划数量，请重新分配"),
    EMPLOYEE_NO_REPEAT("80001","员工编号重复"),

    ASSEMBLY_TOOL_NAME_NO_EXIST("90000","总成名称重复"),

    PROCESS_CRAFT_NOT_CONNECT_PROGRAM("90001","工艺未关联程序,请关联程序"),

    ADDRESS_EMPTY("100001" , "串口号为空，请先编辑串口号"),

    START_BIT_EMPTY("100002" , "起始位为空，请先编辑起始位"),

    OFFSET_EMPTY("100003" , "偏移量为空，请便编辑偏移量"),

    TOOL_ID_NO_EXIT("100004" , "刀具不存在"),

    NO_MESSAGE_TYPE("100005" , "消息类型未指定，无法发送"),

    TIME_CONFLICT("100007" , "分配任务时间冲突，请重新分配"),

    PERMISSION_DENIED("100006" , "权限不足，无法发送"),

    NO_EXIST_MODEL("4001" , "模型不存在"),

    NO_EXIST_MODEL_TASK("4002" , "模型任务获取失败 请重新装配");


    /**
     * 错误编码
     */
    private String code;

    /**
     * 注释信息
     */
    private String msg;


    /**
     *
     * @param code
     */
    ToolManageEx(String code,String msg) {
        this.code=code;
        this.msg=msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
